<?php 
session_start(); 
?>
<?php
include'connecsi.php';
$user=trim($_POST[user]);
$pass=trim($_POST[pass]);

$proses="select * from db_petugas where NAMA_PETUGAS='$user' and TGL_LAHIR='$pass' ";
$queri=mysql_query($proses)or die("maaf query salah");
$hasil=mysql_fetch_row($queri);
if($hasil)
{
$_SESSION['user']=$user;
$_SESSION['password']=$pass;
header('location:home.php?ling=home');
}
else
{
header('location:login.php');
}
?>